package com.uenpay.oem.data.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author: liulou
 * Date: 2017/6/12.
 * desc: 身份证联网识别返回数据
 */

public class UserIdCardInfo implements Parcelable {

    private String cerNo;
    private String cerName;

    public String getCerNo() {
        return cerNo;
    }

    public void setCerNo(String cerNo) {
        this.cerNo = cerNo;
    }

    public String getCerName() {
        return cerName;
    }

    public void setCerName(String cerName) {
        this.cerName = cerName;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.cerNo);
        dest.writeString(this.cerName);
    }

    public UserIdCardInfo() {
    }

    public UserIdCardInfo(String cerNo, String cerName) {
        this.cerNo = cerNo;
        this.cerName = cerName;
    }

    protected UserIdCardInfo(Parcel in) {
        this.cerNo = in.readString();
        this.cerName = in.readString();
    }

    public static final Parcelable.Creator<UserIdCardInfo> CREATOR = new Parcelable.Creator<UserIdCardInfo>() {
        public UserIdCardInfo createFromParcel(Parcel source) {
            return new UserIdCardInfo(source);
        }

        public UserIdCardInfo[] newArray(int size) {
            return new UserIdCardInfo[size];
        }
    };

    @Override
    public String toString() {
        return "UserIdCardInfo{" +
                "cerNo='" + cerNo + '\'' +
                ", cerName='" + cerName + '\'' +
                '}';
    }
}
